using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PACKETPARSERMAX20.CORE
{
	public class exploration_basexp : MangosBase
	{
		public System.SByte? level;
		public System.Int32? basexp;




		public override string GetInsertCommand()
		{
			return string.Format("INSERT IGNORE INTO `exploration_basexp` (`level`, `basexp`) VALUES ('{0}', '{1}');", level.GetValueOrDefault(), basexp.GetValueOrDefault());
		}


		public override string GetUpdateCommand()
		{
            StringBuilder sb = new StringBuilder();
						sb.Append("UPDATE `exploration_basexp` SET ");
			if(basexp != null)
			{
				sb.AppendLine("`basexp`='" + basexp.Value.ToString() + "'");
			}
				sb = sb.Replace("\r\n", ", ");
				sb.Append(" WHERE `level`='" + level.Value.ToString() + "';");
				sb = sb.Replace(",  WHERE", " WHERE");

            return sb.ToString();
		}


	}
}
